public class demo4 {
    public static void main(String[] args) {
        protected String demo4;
        public void name(String name){
            demo4 =name;
        }
        public void eat(String c) {
            System.out.println(demo4+" eat: "+c);
        }

        public void sleep(String t) {
            System.out.println("sleep:"+t);
        }
    }
}